package com.aegean.MonitorExamSYS.center.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.opensymphony.xwork2.ActionSupport;

@Controller("DeleteExamValueAction")
@Scope("prototype")
public class DeleteExamValue extends ActionSupport {
	@Resource
	CenterBusiness business;
	private int[] exam_Ids;

	public int[] getexam_Ids() {
		return exam_Ids;
	}

	public void setexam_Ids(int[] exam_Ids) {
		this.exam_Ids = exam_Ids;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	private boolean success;

	public String delete() throws Exception {
		try {
			success = business.deleteExamValue(exam_Ids);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}

}
